Last Comment Bug 716512 - gcparam broken: Assertion failure: value >= rt->gcBytes, at jsapi.cpp:2900
: gcparam broken: Assertion failure: value >= rt->gcBytes, at jsapi.cpp:2900
: assertion, testcase
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: x86_64 Linux
: -- critical (vote)
: mozilla12
Assigned To: Igor Bukanov
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2012-01-09 05:09 PST by Christian Holler (:decoder)
Modified: 2013-01-19 14:01 PST (History)
5 users (show)
choller: in‑testsuite+
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

v1 (7.17 KB, patch)
2012-01-09 05:49 PST, Igor Bukanov
anygregor: review+
Details | Diff | Splinter Review

Description Christian Holler (:decoder) 2012-01-09 05:09:21 PST
The following code asserts on mozilla-central revision 9a230265bad5 (no options required):

gcparam("maxBytes", 22000);
Comment 1 Igor Bukanov 2012-01-09 05:49:32 PST
Created attachment 586969 [details] [diff] [review]

The patch reports an error if gcparam tries to set maxBytes to a value less than the current gcBytes.
Comment 2 Christian Holler (:decoder) 2012-01-09 06:02:25 PST
It should be noted that this code is part of the tests. In "tests/js1_6/extensions/regress-456826.js", line 59 it says "gcparam("maxBytes", 22000);".
Comment 3 Igor Bukanov 2012-01-09 06:29:41 PST - I updated the test to use gcparam("maxBytes", gcparam("gcBytes")+4096)
Comment 4 Ed Morley [:emorley] 2012-01-09 15:08:52 PST
Comment 5 Christian Holler (:decoder) 2013-01-19 14:01:52 PST
Automatically extracted testcase for this bug was committed:

Note You need to log in before you can comment on or make changes to this bug.