由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Java runtime array memory layout?
相关主题
请教一个问题,thanks!Java runtime?
Java program running on PDARe: 怎么能是JAVA里的数组开的更大?
string pool vs class constant pool问题,在线等Re: The real Risk
怎么样让jar在64位JRE下运行啊?Re: unix环境下如何在java程序中执行命令行?
如何造Array of Generic Type.net vs. J2ee(zhuan)
convert array to blobJava Telnet Client Implementation v0.99Beta
Where I can find comparison of JVMsJAVA RUNTIME.EXEC 一问
Re: How can I call another program from Java?question about Jbuilder
相关话题的讨论汇总
话题: layout话题: array话题: java话题: memory话题: runtime
进入Java版参与讨论
1 (共1页)
P*****f
发帖数: 2272
1
on 32bit platform, say, a one-dimension int array
int [] a={1,2,3};
What about the memory layout of a according to spec? suppose the starting
address for a is $a, so 0($a) is the type info? 4($a)is the length? and
followed by
elements? thx
m******t
发帖数: 2416
2

I doubt the JVM Spec would dictate this. 8-)
On a hunch, I would guess it's more complex than that. Arrays should be
implemented as objects.

【在 P*****f 的大作中提到】
: on 32bit platform, say, a one-dimension int array
: int [] a={1,2,3};
: What about the memory layout of a according to spec? suppose the starting
: address for a is $a, so 0($a) is the type info? 4($a)is the length? and
: followed by
: elements? thx

1 (共1页)
进入Java版参与讨论
相关主题
question about Jbuilder如何造Array of Generic Type
Runtime.exec() 问题convert array to blob
javac命令行中path的空格问题Where I can find comparison of JVMs
self-modifying code?Re: How can I call another program from Java?
请教一个问题,thanks!Java runtime?
Java program running on PDARe: 怎么能是JAVA里的数组开的更大?
string pool vs class constant pool问题,在线等Re: The real Risk
怎么样让jar在64位JRE下运行啊?Re: unix环境下如何在java程序中执行命令行?
相关话题的讨论汇总
话题: layout话题: array话题: java话题: memory话题: runtime