Skip to main content

CVM_USE_MEM_MGR and CVMgetPagesize()

4 replies [Last post]
gyu
Offline
Joined: 2007-06-03

Hello,

I want to get information about ROMized classes's memory usage.
I found some useful code in phoneME Advanced MR1 in preload.c enclosed with CVM_USE_MEM_MGR.
Unfortunately, that code is not complete.
Some files are missing. (e.g., javavm/include/mem_mgr.h").

Since I don't want full feature of CVM_USE_MEM_MGR,
it would be enough for me to know the function body for CVMgetPagesize().
I think it simply returns platform-dependent (CPU/OS) number. is it right?
Then, is there a way to know my platform's page size?

Sincerely,

Sanggyu

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

Look in MR2 (on the cdc trunk). For MR1, most of the memmgr stuff was stripped out.

Chris

gyu
Offline
Joined: 2007-06-03

Thank you for your reply.

I already have looked into MR2 source before posting my question.
Unfortunately, I could not find information needed for CVM_USE_MEM_MGR in MR2.
That is, MR2 also have no definition for [b]CVMgetPagesize[/b](), no file for mem_mgr.h.

Is there a method to get page size for an architecture that I don't have machine specification.

Message was edited by: gyu

cjplummer
Offline
Joined: 2006-10-16

You need to look in the repository, not the source bundle, which I believe is still stripping out memmgr support:

% svn info src/share/javavm/include/mem_mgr.h
Path: src/share/javavm/include/mem_mgr.h
Name: mem_mgr.h
URL: https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk/src/share/...
Repository UUID: 6dfe35fe-931f-0410-af5f-a91b034811cd
Revision: 7460
Node Kind: file
Schedule: normal
Last Changed Author: rajaa
Last Changed Rev: 351
Last Changed Date: 2006-11-29 10:10:56 -0800 (Wed, 29 Nov 2006)
Text Last Updated: 2006-11-29 10:52:20 -0800 (Wed, 29 Nov 2006)
Properties Last Updated: 2006-11-29 10:52:08 -0800 (Wed, 29 Nov 2006)
Checksum: 8f8834eefc63b41ba2f8463b176cf996

Chris

gyu
Offline
Joined: 2007-06-03

Thank you very much.
I found the answer in mem_mgr_md.c in MR2 svn source tree.