Skip to content

Commit 41de92d

Browse files
authored
Merge pull request #50 from edelsohn/edelsohn-patch-1
memory-safety-best-practice-edelsohn-patch-1
2 parents a7da523 + a1d69d1 commit 41de92d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/best-practice-memory-safe-by-default-languages.md

+5
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ TO DO
3333
* If `sun.misc.Unsafe` or `jdk.internal.misc.Unsafe` is your only option, follow all the same best practices as you would with a [non memory-safe language](best-practice-non-memory-safe-by-default-languages.md).
3434
* Monitor occurrences of `sun.misc.Unsafe` or `jdk.internal.misc.Unsafe` in your code (or prevent them) using for example [checkstyle's IllegalImport rule](https://checkstyle.org/checks/imports/illegalimport.html) configured to detect both `sun.*` and `jdk.internal.*`.
3535
* If FFM APIs are used, enable the compilation option `-Xlint:restricted` to detect risky usages at compile time (the option enables warnings in the `[restricted]` log category). Similar warnings are produced by default by the JVM at runtime. These warnings should be monitored and investigated as well since they could come from third-party libraries and not just from own code.
36+
37+
## COBOL
38+
39+
* COBOL is memory safe by default, but has options to disable buffer overflow checking. It implements better defaults than C and C++.
40+
* Modern mainframes are faster, able to handle more transactions. Memory safety checks should be encouraged.

0 commit comments

Comments
 (0)