Opened 9 years ago

Closed 9 years ago

#16254 closed defect (duplicate)

tests/json.js test serializeCircular crashes Rhino

Reported by: andybalaam Owned by:
Priority: undecided Milestone: tbd
Component: Core Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:


When I run the JSON tests with Rhino I get this:

$ java -jar util/shrinksafe/js.jar dojo/dojo.js baseUrl=file://$PWD/dojo load=doh test=dojo/tests/json

The Dojo Unit Test Harness, $Rev: 23869 $
Copyright (c) 2011, The Dojo Foundation, All Rights Reserved
loading test dojo/tests/json

32 tests to run in 1 groups
GROUP "tests.json" has 32 tests to run
Exception in thread "Thread-29" java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.mozilla.javascript.NativeArray.<init>(
	at org.mozilla.javascript.NativeArray.jsConstructor(
	at org.mozilla.javascript.NativeArray.execIdCall(
	at org.mozilla.javascript.BaseFunction.construct(
	at org.mozilla.javascript.Context.newObject(
	at org.mozilla.javascript.ScriptRuntime.newArrayLiteral(
	at org.mozilla.javascript.Interpreter.interpretLoop(
	at org.mozilla.javascript.Interpreter.interpret(
	at org.mozilla.javascript.optimizer.OptRuntime.callName0(
	at org.mozilla.javascript.gen.c2._c8(Unknown Source)
	at Source)
	at org.mozilla.javascript.ContextFactory.doTopCall(
	at org.mozilla.javascript.ScriptRuntime.doTopCall(
	at Source)
	at org.mozilla.javascript.Context$
	at org.mozilla.javascript.JavaAdapter.callMethod(

(With the Oracle and IBM versions of Java 1.7)

When I comment out the test "serializeCircular" from tests/json.js the other tests pass fine.

Change History (1)

comment:1 Changed 9 years ago by bill

Component: TestFrameworkCore
Resolution: duplicate
Status: newclosed

Duplicate of #15497.

Note: See TracTickets for help on using tickets.