Thread View: comp.lang.java.advocacy
9 messages
9 total messages
Started by Jordi Guitart
Tue, 20 Feb 2001 13:29
Java memory
Author: Jordi Guitart
Date: Tue, 20 Feb 2001 13:29
Date: Tue, 20 Feb 2001 13:29
6 lines
1853 bytes
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
Author: Berny
Date: Tue, 20 Feb 2001 17:37
Date: Tue, 20 Feb 2001 17:37
25 lines
2153 bytes
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
Author: Robert Klemme
Date: Tue, 20 Feb 2001 17:44
Date: Tue, 20 Feb 2001 17:44
24 lines
2369 bytes
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
Author: Mats Olsson
Date: Wed, 21 Feb 2001 00:18
Date: Wed, 21 Feb 2001 00:18
12 lines
2003 bytes
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
Author: matthew denner
Date: Wed, 21 Feb 2001 12:27
Date: Wed, 21 Feb 2001 12:27
13 lines
2389 bytes
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
Author: Jordi Guitart
Date: Wed, 21 Feb 2001 13:05
Date: Wed, 21 Feb 2001 13:05
9 lines
1928 bytes
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
Author: matthew denner
Date: Wed, 21 Feb 2001 13:59
Date: Wed, 21 Feb 2001 13:59
19 lines
2647 bytes
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
Author: Jordi Guitart
Date: Wed, 21 Feb 2001 14:24
Date: Wed, 21 Feb 2001 14:24
6 lines
1801 bytes
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
Author: Ben
Date: Wed, 21 Feb 2001 15:47
Date: Wed, 21 Feb 2001 15:47
15 lines
2222 bytes
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