Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8153876

Replace 4K stack allocations with Resource allocations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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
        2. pl_output_c.txt
          1 kB
        3. pl_output_cpp.txt
          21 kB

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

              Created:
              Updated:
              Resolved: