Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit d5f3ad7

Browse files
committed
modified examples to use smaller heap sizes
1 parent c17b576 commit d5f3ad7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/examples/array/IntArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class IntArray {
1313
private static final int HEADER_SIZE = 4;
14-
private static Heap heap = Heap.getHeap("/mnt/mem/persistent_pool", 2147483648L);
14+
private static Heap heap = Heap.getHeap("/mnt/mem/persistent_pool", 100_000_000L);
1515
MemoryBlock block;
1616

1717

src/examples/array/MemoryBlockArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class MemoryBlockArray {
1313
private static final int HEADER_SIZE = 4;
14-
private static TransactionalHeap heap = TransactionalHeap.getHeap("/mnt/mem/persistent_pool_tx", 2147483648L);
14+
private static TransactionalHeap heap = TransactionalHeap.getHeap("/mnt/mem/persistent_pool_tx", 100_000_000L);
1515
TransactionalMemoryBlock block;
1616

1717

src/examples/string_store/Reader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class Reader {
1414
public static void main(String[] args) {
15-
Heap h = Heap.getHeap("/mnt/mem/persistent_pool", 2147483648L);
15+
Heap h = Heap.getHeap("/mnt/mem/persistent_pool", 100_000_000L);
1616

1717
Console c = System.console();
1818
if (c == null) {

src/examples/string_store/Writer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class Writer {
1414
public static void main(String[] args) {
15-
Heap h = Heap.getHeap("/mnt/mem/persistent_pool", 2147483648L);
15+
Heap h = Heap.getHeap("/mnt/mem/persistent_pool", 100_000_000L);
1616

1717
Console c = System.console();
1818
if (c == null) {

0 commit comments

Comments
 (0)