Skip to content

Commit

Permalink
testing mlock
Browse files Browse the repository at this point in the history
  • Loading branch information
radu committed Jun 23, 2024
1 parent a2ff0bf commit d4a5db5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/mlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def setup_memory_limit():
arr_np = np.zeros(len(arr), dtype=np.uint8)
arr_np[:] = arr
print(f"Testing size: {size} MB")
print("mlock bytearray")
mlock(arr)
print("mlock np array")
mlock(arr_np)

zeroize1(arr)
Expand Down
2 changes: 0 additions & 2 deletions tests/test_zeroize.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def test_zeroize1_sizes(self):
arr_np = np.zeros(len(arr), dtype=np.uint8)
arr_np[:] = arr
print(f"Testing size: {size} MB")
print("mlock bytearray")
mlock(arr)
print("mlock np array")
mlock(arr_np)

zeroize1(arr)
Expand Down

0 comments on commit d4a5db5

Please sign in to comment.