https://github.com/stephengold/stack-alloc
Allocate Java objects from method stack instead of the program heap.
https://github.com/stephengold/stack-alloc
allocator java jvm-library library open-source stack-alloc
Last synced: 10 months ago
JSON representation
Allocate Java objects from method stack instead of the program heap.
- Host: GitHub
- URL: https://github.com/stephengold/stack-alloc
- Owner: stephengold
- License: zlib
- Created: 2021-05-08T04:40:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-01T05:40:02.000Z (11 months ago)
- Last Synced: 2025-03-27T18:55:30.181Z (10 months ago)
- Topics: allocator, java, jvm-library, library, open-source, stack-alloc
- Language: Java
- Homepage:
- Size: 573 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stack-alloc
This is an adaptation of Martin Dvorak's 2008 stack-alloc project.
The source code was copied from https://github.com/gsimard/jbullet/tree/a98759025dbffa5dcdf77897c75f09b69a75279b,
and Gradle build scripts were added.
This library consists of 2 packages:
+ cz.advel.stack.instrument - to instrument Java class files, and
+ cz.advel.stack - to allocate memory at runtime.
The instrumentation package depends on:
+ the "asm-all" library to manipulate Java bytecode, and
+ the "ant" library to interface with Apache Ant build tools.
## External links
+ Original project announcement and discussion: https://jvm-gaming.org/t/jstackalloc-stack-allocation-of-value-objects-in-java/31983
+ Pre-built Maven artifacts at the Maven Central Repository: https://search.maven.org/artifact/com.github.stephengold/stack-alloc
+ Gradle project to build the "asm-all" library: https://github.com/stephengold/asm
+ The Apache Ant project: https://ant.apache.org/