VirtualBox

Changeset 99775 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157370
Message:

*: Mark functions as static if not used outside of a given compilation unit. Enables the compiler to optimize inlining, reduces the symbol tables, exposes unused functions and in some rare cases exposes mismtaches between function declarations and definitions, but most importantly reduces the number of parfait reports for the extern-function-no-forward-declaration category. This should not result in any functional changes, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp

    r98103 r99775  
    210210 *                          executable or not.
    211211 */
    212 int RTHeapPageInit(PRTHEAPPAGE pHeap, bool fExec)
     212static int RTHeapPageInit(PRTHEAPPAGE pHeap, bool fExec)
    213213{
    214214    int rc = RTCritSectInitEx(&pHeap->CritSect,
     
    236236 * @param   pHeap           The page heap to delete.
    237237 */
    238 int RTHeapPageDelete(PRTHEAPPAGE pHeap)
     238static int RTHeapPageDelete(PRTHEAPPAGE pHeap)
    239239{
    240240    NOREF(pHeap);
     
    504504 * @param   ppv             Where to return the pointer to the pages.
    505505 */
    506 int RTHeapPageAlloc(PRTHEAPPAGE pHeap, size_t cPages, const char *pszTag, uint32_t fFlags, void **ppv)
     506static int RTHeapPageAlloc(PRTHEAPPAGE pHeap, size_t cPages, const char *pszTag, uint32_t fFlags, void **ppv)
    507507{
    508508    /*
     
    557557 * @param   cPages          The number of pages that was allocated.
    558558 */
    559 int RTHeapPageFree(PRTHEAPPAGE pHeap, void *pv, size_t cPages)
     559static int RTHeapPageFree(PRTHEAPPAGE pHeap, void *pv, size_t cPages)
    560560{
    561561    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette