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
Copy file name to clipboardExpand all lines: docs/best-practice-memory-safe-by-default-languages.md
+5
Original file line number
Diff line number
Diff line change
@@ -33,3 +33,8 @@ TO DO
33
33
* 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).
34
34
* 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.*`.
35
35
* 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