🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.advocacy
9 messages
9 total messages Started by Jordi Guitart Tue, 20 Feb 2001 13:29
Java memory
#158
Author: Jordi Guitart
Date: Tue, 20 Feb 2001 13:29
6 lines
1853 bytes
Hi,

Is there any mechanism or tool to know the memory addresses where objects,
classes, constants, etc are mapped?

JGF
Re: Java memory
#159
Author: Berny
Date: Tue, 20 Feb 2001 17:37
25 lines
2153 bytes
Objects are mapped in their reference.

String strLine;
strLine = new String();
^^^^^
    ^------- is now containing the memory-address of this object.

Same counts for classes, I believe.
How to do it with constants, I don't think it is possible with primairy
variable-types.

-Berny



Jordi Guitart <jguitart@ac.upc.es> schreef in berichtnieuws
96trij$4ns$1@defalla.upc.es...
> Hi,
>
> Is there any mechanism or tool to know the memory addresses where objects,
> classes, constants, etc are mapped?
>
> JGF
>
>
Re: Java memory
#160
Author: Robert Klemme
Date: Tue, 20 Feb 2001 17:44
24 lines
2369 bytes
for what do you need this???  you cannot access this directly either...

    r.

-- 
Robert Klemme
Software Engineer
-------------------------------------------------------------
myview technologies GmbH & Co. KG
Riemekestraße 160 ~ D-33106 Paderborn ~ Germany
E-Mail: mailto:robert.klemme@myview.de
Telefon: +49/5251/69090-321 ~ Fax: +49/5251/69090-399
-------------------------------------------------------------
"Jordi Guitart" <jguitart@ac.upc.es> schrieb im Newsbeitrag news:96trij$4ns$1@defalla.upc.es...
> Hi,
> 
> Is there any mechanism or tool to know the memory addresses where objects,
> classes, constants, etc are mapped?
> 
> JGF
> 
> 
Re: Java memory
#151
Author: Mats Olsson
Date: Wed, 21 Feb 2001 00:18
12 lines
2003 bytes
In article <96trij$4ns$1@defalla.upc.es>,
Jordi Guitart <jguitart@ac.upc.es> wrote:
>Hi,
>
>Is there any mechanism or tool to know the memory addresses where objects,
>classes, constants, etc are mapped?

    You could go native and look at the object from JNI... however,
do note that the GC moves things around at will, so any address will 
be temporary.

    /Mats
Re: Java memory
#152
Author: matthew denner
Date: Wed, 21 Feb 2001 12:27
13 lines
2389 bytes
Jordi Guitart wrote:
> 
> Is there any mechanism or tool to know the memory addresses where objects,
> classes, constants, etc are mapped?

don't do it.  even if you could get access to this information you couldn't
do anything with it anyway (well, i suppose you could print it to the 
screen which would obviously be really useful!).

-----------------------------------------------------------------------------
Sessami is a trademark of Escape Velocity Technology Mobile Services Limited.
All information contained in this e-mail is confidential and for the use of
the addressee only.  If you receive this message in error please notify.
Re: Java memory
#153
Author: Jordi Guitart
Date: Wed, 21 Feb 2001 13:05
9 lines
1928 bytes
Hi,

I don't want access objects directy. I'm making changes in the JVM and I
have memory problems, so I'd like to understand memory mappings to resolve
these problems.

Thanks

JGF
Re: Java memory
#154
Author: matthew denner
Date: Wed, 21 Feb 2001 13:59
19 lines
2647 bytes
Jordi Guitart wrote:

> 
> I don't want access objects directy. I'm making changes in the JVM and I
> have memory problems, so I'd like to understand memory mappings to resolve
> these problems.

let me get this straight: you're altering the JVM and don't understand how
it is storing objects in memory!?!!  this worries me slightly.

if you haven't i'd suggest looking for the JVM specs on the sun website to
see if they mention anything about this.  and i guess that you should also
talk to the JVM people (whoever wrote your JVM and gave you the source code,
unless you're writing your own ... then i'd be really worried!) to see if
they can help.
-----------------------------------------------------------------------------
Sessami is a trademark of Escape Velocity Technology Mobile Services Limited.
All information contained in this e-mail is confidential and for the use of
the addressee only.  If you receive this message in error please notify.
Re: Java memory
#155
Author: Jordi Guitart
Date: Wed, 21 Feb 2001 14:24
6 lines
1801 bytes
I'm only modifying a little part of the JVM (in fact, I'm not "modifying"
anything, I'm only replacing threads library with another one, and
unfortunately I have lateral memory problems, so I'm trying to discover
why?)

JGF
Re: Java memory
#156
Author: Ben
Date: Wed, 21 Feb 2001 15:47
15 lines
2222 bytes
Wow. Talk about making life hard for yourself! The Sun crew haven't yet been
able to get Threading 100% right!

Ben

"Jordi Guitart" <jguitart@ac.upc.es> wrote in message
news:970j55$6af$1@defalla.upc.es...
> I'm only modifying a little part of the JVM (in fact, I'm not "modifying"
> anything, I'm only replacing threads library with another one, and
> unfortunately I have lateral memory problems, so I'm trying to discover
> why?)
>
> JGF
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads