VirtualBox

Changeset 14468 in vbox for trunk


Ignore:
Timestamp:
Nov 21, 2008 3:44:27 PM (16 years ago)
Author:
vboxsync
Message:

linuxevent*-sems.cpp, Makefile.kmk: update the explanation and dropped the INCS.

Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r14429 r14468  
    388388        r3/linux/semevent-linux.cpp \
    389389        r3/linux/semeventmulti-linux.cpp
    390 # with glibc >= 2.6 we use the libc implementation
    391 r3/linux/semevent-linux.cpp_INCS = .
    392 r3/linux/semeventmulti-linux.cpp_INCS = .
    393390ifdef RT_NEW_LINUX_MUTEX_CODE
    394391 RuntimeR3_SOURCES.linux.amd64 += \
  • trunk/src/VBox/Runtime/r3/linux/semevent-linux.cpp

    r14429 r14468  
    3232#if __GLIBC_PREREQ(2,6)
    3333
    34 /* glibc 2.6 fixed a serious bug in the mutex implementation
    35  * The external refernce to epoll_pwait is a hack which prevents
    36  * that we link against glibc < 2.6 */
    37 
     34/*
     35 * glibc 2.6 fixed a serious bug in the mutex implementation. We wrote this
     36 * linux specific event semaphores code in order to work around the bug. As it
     37 * turns out, this code seems to have an unresolved issue (#2599), so we'll
     38 * fall back on the pthread based implementation if glibc is known to contain
     39 * the bug fix.
     40 *
     41 * The external refernce to epoll_pwait is a hack which prevents that we link
     42 * against glibc < 2.6.
     43 */
     44#include "../posix/semevent-posix.cpp"
    3845asm volatile (".global epoll_pwait");
    39 
    40 #include "r3/posix/semevent-posix.cpp"
    4146
    4247#else /* glibc < 2.6 */
  • trunk/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp

    r14429 r14468  
    3333#if __GLIBC_PREREQ(2,6)
    3434
    35 /* glibc 2.6 fixed a serious bug in the mutex implementation.
    36  * The external refernce to epoll_pwait is a hack which prevents
    37  * that we link against glibc < 2.6 */
    38 
     35/*
     36 * glibc 2.6 fixed a serious bug in the mutex implementation. We wrote this
     37 * linux specific event semaphores code in order to work around the bug. As it
     38 * turns out, this code seems to have an unresolved issue (#2599), so we'll
     39 * fall back on the pthread based implementation if glibc is known to contain
     40 * the bug fix.
     41 *
     42 * The external refernce to epoll_pwait is a hack which prevents that we link
     43 * against glibc < 2.6.
     44 */
     45#include "../posix/semeventmulti-posix.cpp"
    3946asm volatile (".global epoll_pwait");
    40 
    41 #include "r3/posix/semeventmulti-posix.cpp"
    4247
    4348#else /* glibc < 2.6 */
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