Revision: 16832
Author:   [email protected]
Date:     Thu Sep 19 13:32:00 2013 UTC
Log:      Allocation site tests aren't compatible with GcStress mode.

They make assumptions about elementskind of arrays based on allocation site
feedback. This feedback is highly dependent on mementos, unrooted objects
placed behind arrays in the heap meant to live until the next scavenge.

GcStress does many more gcs than normal, and wrecks havoc with this kind
of test.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/23449042
http://code.google.com/p/v8/source/detail?r=16832

Modified:
 /branches/bleeding_edge/test/mjsunit/allocation-site-info.js

=======================================
--- /branches/bleeding_edge/test/mjsunit/allocation-site-info.js Thu Sep 19 09:48:50 2013 UTC +++ /branches/bleeding_edge/test/mjsunit/allocation-site-info.js Thu Sep 19 13:32:00 2013 UTC
@@ -35,6 +35,11 @@
 // in this test case.  Depending on whether smi-only arrays are actually
// enabled, this test takes the appropriate code path to check smi-only arrays.

+// Reset the GC stress mode to be off. Needed because AllocationMementos only +// live for one gc, so a gc that happens in certain fragile areas of the test
+// can break assumptions.
+%SetFlags("--gc-interval=-1")
+
// support_smi_only_arrays = %HasFastSmiElements(new Array(1,2,3,4,5,6,7,8));
 support_smi_only_arrays = true;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to