Replace 4K stack allocations with Resource allocations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • 9
    • b126

      Declarations such as this one in classLoader.cpp allocates 4K of stack space:

          char package[JIMAGE_MAX_PATH];

      It would be better to allocate the memory as a RESOURCE_ARRAY to reduce the chance of a stack overflow.

        1. check_array.pl
          0.6 kB
          Calvin Cheung
        2. pl_output_cpp.txt
          21 kB
          Calvin Cheung
        3. pl_output_c.txt
          1 kB
          Calvin Cheung

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: