|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
allocating memory for objectsIm trying to find out the part of code which is performing allocation of memory for objects. I could find an alloc() method in every Mutator and several other methods which seem to play a role in memory allocation, but when i try to trace their calls, i just go around and end up at the same point.
for instance, when vm encounters the following line of code in a sample program, i would like to know which part of its code is being executed to actually allocate memory on heap..where is the call to appropriate alloc() being done?where in the code base is memory allocation being initiated? MyClass obj=new MyClass(); Please help! |
|
|
Re: [rvm-research] allocating memory for objectsPlease state your name and institution/company you are from to introduce
yourself to the group. The code for new is generated by BaselineCompilerImpl.emit_resolved_new() and BaselineCompilerImpl.emit_unresolved_new() methods. emit_resolved_new() generates code that calls RuntimeEntrypoints.resolvedNewScalar(). Start from here to code that leads to the actual allocation. Suriya On Sun, Nov 08, 2009 at 01:40:21AM -0800, srinivas13.2 wrote: > > > Im trying to find out the part of code which is performing allocation of > memory for objects. I could find an alloc() method in every Mutator and > several other methods which seem to play a role in memory allocation, but > when i try to trace their calls, i just go around and end up at the same > point. > for instance, when vm encounters the following line of code in a sample > program, i would like to know which part of its code is being executed to > actually allocate memory on heap..where is the call to appropriate alloc() > being done?where in the code base is memory allocation being initiated? > MyClass obj=new MyClass(); > > Please help! > -- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
|
|
[rvm-research] Does "Live Ratio" denote the ratio between live objects and the whole objects in one collectionDear all,
Sorry to bother you with this simple question, I just want to re-confirm it. If so, why all the SPECjvm98 applications typically have a live ratio of over 50%, with a heap size of 25M? Thanks. Regards, Liangliang Tong ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
|
|
Re: [rvm-research] allocating memory for objectsThank you for your timely response.
My name is Srinivas Gopal and i am a student of BITS Pilani, India. The project im working on has to do with implementing Thread-specific heaps so garbage collection of a particular thread can take place without stopping other running threads. Im currently trying decide whether an object has to be allocated on thread-local or global heap based on the result of escape analysis performed by org.jikesrvm.compilers.opt.escape.SimpleEscape.java. My idea, apart from other things, involves modifying the allocator code to perform something as follows: if(threadLocal) { //offset of the object should lie in its containing thread's heap.. } else { //offset should lie in the global heap } If you think this approach is inappropriate or if you have a better idea, kindly let me know. Srinivas
|
|
|
Re: [rvm-research] Does "Live Ratio" denote the ratio between live objects and the whole objects in one collectionDear All,
I figured it out, no need to reply then. Thanks. Regards, Liangliang Tong Quoting lltong@...: > Dear all, > > Sorry to bother you with this simple question, I just want to re-confirm it. > If so, why all the SPECjvm98 applications typically have a live > ratio of over 50%, with a heap size of 25M? > Thanks. > > Regards, > Liangliang Tong > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jikesrvm-researchers mailing list Jikesrvm-researchers@... https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers |
| Free embeddable forum powered by Nabble | Forum Help |