Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: wordsmithing

...

Non-Compliant Code Example

The class OpenedFile in In the following non-compliant code example opens , the class OpenedFile opens a file during deserialization.  Operating systems typically impose a limit on the number of open file handles per process; . Usually, this limit typically is not large (e.g., 1024).  Consequently, deserializing a list of OpenedFile objects can consume all file handles available to the process and consequently cause the program to malfunction if it attempts to open another file before the deserialized OpenedFile objects get garbage-collected.

...