You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement cleaner to replace deprecated finalizers (#893)
The cleaner is the replacement for the deprecated finalize() method for
cleaning objects before garbage collection.
Each class that was previously using finalize() will have an anonymous
function that cleans up the necessary resources. The number of cleaner
threads can be set by a property with the default value being 2. The
object and its anonymous function are registered to one of the cleaner
threads in round robin order.
Signed-off-by: Sabrina Lee <[email protected]>
Co-authored-by: Sabrina Lee <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
-[Run All Tests](#run-all-tests)
7
7
-[Run Single Test](#run-single-test)
8
8
-[OpenJCEPlus and OpenJCEPlusFIPS Provider SDK Installation](#openjceplus-and-openjceplusfips-provider-sdk-installation)
9
+
-[Configuration Options](#configuration-options)
9
10
-[Features and Algorithms](#features-and-algorithms)
10
11
-[Contributions](#contributions)
11
12
@@ -263,6 +264,13 @@ take effect.
263
264
```console
264
265
-Djgskit.library.path=$ANYDIRECTORY
265
266
```
267
+
## Configuration Options
268
+
269
+
The following properties can be used to configure application behavior at runtime.
270
+
271
+
| Property | Use Case |
272
+
|----------|----------|
273
+
|`-Dopenjceplus.cleaners.num=<number_cleaner_threads>`| The cleaner is used for cleaning up native memory no longer in use by OpenJCEPlus and OpenJCEPlusFIPS providers. This option sets the number of cleaner threads to improve cleaning efficiency, particularly useful when encountering `Out Of Memory` (OOM) errors. Default value is `2`. |
266
274
267
275
# Features And Algorithms
268
276
@@ -423,7 +431,6 @@ AES Key Wrap based on NIST SP800-38F.
423
431
424
432
Code does not allow the specification of an IV. However, it will return the default ICV as defined in the NIST SP800-38F.
425
433
426
-
427
434
# Contributions
428
435
429
436
The following contribution guidelines should be followed:
0 commit comments