Skip to content

Commit fbbbfa0

Browse files
committed
Fix documentation
It's LIFO, not FIFO.
1 parent 96ade55 commit fbbbfa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/lwjgl/demo/intro/Intro3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* <p>
2828
* LWJGL 3 provides a better way to handle such situations, which is by using the MemoryStack class. This class allows
2929
* to retrieve a small chunk of memory from a pre-allocated thread-local memory region of a fixed size. It is a stack
30-
* because allocations/deallocations must be issued in FIFO order, in that allocations cannot be freed randomly bust
30+
* because allocations/deallocations must be issued in LIFO order, in that allocations cannot be freed randomly bust
3131
* must be freed in the reverse allocation order. This allows to avoid any heap allocation and compaction strategies.
3232
* <p>
3333
* Also note that the pre-allocated memory of the MemoryStack is per thread. That means, every thread will get its own

0 commit comments

Comments
 (0)