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

Commit

Permalink
modified examples to use smaller heap sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
asonje committed Oct 21, 2019
1 parent c17b576 commit d5f3ad7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/examples/array/IntArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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


Expand Down
2 changes: 1 addition & 1 deletion src/examples/array/MemoryBlockArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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


Expand Down
2 changes: 1 addition & 1 deletion src/examples/string_store/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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

Console c = System.console();
if (c == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/examples/string_store/Writer.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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

Console c = System.console();
if (c == null) {
Expand Down

0 comments on commit d5f3ad7

Please sign in to comment.