chore(Deps/Acelite): Update to 6.5.10 (#3450)

This commit is contained in:
Kargatum
2020-11-11 22:09:02 +07:00
committed by GitHub
parent a93565b6da
commit e27201cee2
921 changed files with 18238 additions and 33164 deletions

View File

@@ -3,6 +3,10 @@
#include "ace/Global_Macros.h"
#include "ace/config-all.h"
#if defined (ACE_HAS_ALLOC_HOOKS)
# include "ace/Malloc_Base.h"
#endif /* ACE_HAS_ALLOC_HOOKS */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE (ACE_Synch_Options)
@@ -44,11 +48,12 @@ ACE_Synch_Options::set (unsigned long options,
this->options_ = options;
this->timeout_ = timeout;
// Whoa, possible dependence on static initialization here. This
// function is called during initialization of the statics above.
// But, ACE_Time_Value::zero is a static object. Very fortunately,
// its bits have a value of 0.
if (this->timeout_ != ACE_Time_Value::zero)
/*
* Not using ACE_Time_Value::zero because of possible static init order
* dependence. It would work fine because the memory would all zeros anyways,
* but ubsan complains about it.
*/
if (timeout_ != ACE_Time_Value(0))
ACE_SET_BITS (this->options_, ACE_Synch_Options::USE_TIMEOUT);
this->arg_ = arg;