Commit f3ded1c1 by Tom Tromey Committed by Tom Tromey

TestEarlyGC.java: Added comment explaining bytecode.

	* libjava.loader/TestEarlyGC.java: Added comment explaining
	bytecode.

From-SVN: r62047
parent 53b50ac1
2003-01-28 Tom Tromey <tromey@redhat.com> 2003-01-28 Tom Tromey <tromey@redhat.com>
* libjava.loader/TestEarlyGC.java: Added comment explaining
bytecode.
* libjava.jacks/jacks.xfail: More lexer tests now pass. * libjava.jacks/jacks.xfail: More lexer tests now pass.
2003-01-27 Tom Tromey <tromey@redhat.com> 2003-01-27 Tom Tromey <tromey@redhat.com>
......
...@@ -2,6 +2,18 @@ public class TestEarlyGC extends ClassLoader { ...@@ -2,6 +2,18 @@ public class TestEarlyGC extends ClassLoader {
static TestEarlyGC[] a = new TestEarlyGC[10]; static TestEarlyGC[] a = new TestEarlyGC[10];
// Jeff Sturm writes:
// Reconstructed from bytecode (and memory). The singleton pattern
// is used as a class finalizer.
// public class C {
// private static C c;
// public C() {
// c = this;
// }
// protected void finalize() {
// System.out.println("finalized");
// }
// }
byte[] code = { byte[] code = {
-54,-2,-70,-66,0,3,0,45,0,32,1,0,1,67,7,0, -54,-2,-70,-66,0,3,0,45,0,32,1,0,1,67,7,0,
1,1,0,16,106,97,118,97,47,108,97,110,103,47,79,98, 1,1,0,16,106,97,118,97,47,108,97,110,103,47,79,98,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment