« Return to Thread: [rvm-research] to utilize methods in syscall

[rvm-research] to utilize methods in syscall

by lltong :: Rate this Message:

Reply to Author | View in Thread

Dear all,

In org.mmtk.plan.generational.Gen.java, I want to modify the vmRequest
to request for an explicit region of memory, like the following:
   private static final VMRequest vmRequest =
VMRequest.create(sysCall.sysMalloc(1 << 20),  Extent.fromIntSignExtend(1
<< 20));
correspondingly I add a new import statement:
 import static org.jikesrvm.runtime.SysCall.sysCall;

Yet when I complied the generational copy plan, it prompts these errors:
compile-mmtk:
    [javac] Compiling 1 source file to
/home/lltong/jikesrvm/target/mmtk/classes
    [javac]
/home/lltong/jikesrvm/MMTk/src/org/mmtk/plan/crgenerational/CRGen.java:33:
package org.jikesrvm.runtime does not exist
    [javac] import static org.jikesrvm.runtime.SysCall.sysCall;
    [javac]                                   ^
    [javac]
/home/lltong/jikesrvm/MMTk/src/org/mmtk/plan/crgenerational/CRGen.java:33:
static import only from classes and interfaces
    [javac] import static org.jikesrvm.runtime.SysCall.sysCall;
    [javac] ^
    [javac]
/home/lltong/jikesrvm/MMTk/src/org/mmtk/plan/crgenerational/CRGen.java:91:
cannot find symbol
    [javac] symbol  : variable sysCall
    [javac] location: class org.mmtk.plan.crgenerational.CRGen

Why should this happen? Thanks in advance.

--
Regards,
Liangliang Tong


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

 « Return to Thread: [rvm-research] to utilize methods in syscall