Civilizer - let's civilize those primitive types !
Mark Raynsford
org.openjdk at io7m.com
Thu Jan 12 20:42:41 UTC 2023
On 2023-01-12T21:30:07 +0100
forax at univ-mlv.fr wrote:
> > From: "Red IO" <redio.development at gmail.com>
> > To: "Remi Forax" <forax at univ-mlv.fr>
> > Since different references to the same object can actually point to different
> > spots in memory. This might sound memory inefficient but remember, stack memory
> > is cheap heap isn't. The idea is that objects without identity can be allocated
For the sake of pedantry, I don't think this is true either. My desktop
has 32gb of RAM, of which I'm allowed to allocate all 32gb to the heap
if I want. However, on my haven't-touched-the-defaults install:
$ ulimit -a
stack size (kbytes, -s) 8192
I'm not allowed to grab more than 8192kb of stack.
Stack space is an artificially scarce resource. It is "cheaper" in the
sense that using it doesn't create more work for the GC, but that's it.
--
Mark Raynsford | https://www.io7m.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20230112/c5ea12f6/attachment.sig>
More information about the valhalla-dev
mailing list