< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/soql/sa.js

Print this page

        

@@ -27,10 +27,15 @@
 
 // SA package name abbreviations are kept in 'sapkg' object
 // to avoid global namespace pollution
 var sapkg = new Object();
 
+var WrapperClass = Java.type('sun.jvm.hotspot.utilities.soql.wrapper.JSObjectClassWrapper');
+function SAType(clazz) {
+  return new WrapperClass(clazz);
+}
+
 sapkg.hotspot = Packages.sun.jvm.hotspot;
 sapkg.asm = sapkg.hotspot.asm;
 sapkg.c1 = sapkg.hotspot.c1;
 sapkg.code = sapkg.hotspot.code;
 sapkg.compiler = sapkg.hotspot.compiler;

@@ -49,11 +54,11 @@
 sapkg.ui = sapkg.hotspot.ui;
 sapkg.utilities = sapkg.hotspot.utilities;
 
 // SA singletons are kept in 'sa' object
 var sa = new Object();
-sa.vm = sapkg.runtime.VM.getVM();
+sa.vm = SAType(sapkg.runtime.VM).getVM();
 sa.dbg = sa.vm.getDebugger();
 sa.cdbg = sa.dbg.CDebugger;
 sa.heap = sa.vm.universe.heap();
 sa.systemDictionary = sa.vm.systemDictionary;
 sa.sysDict = sa.systemDictionary;
< prev index next >