Fixing some clang warnings/errors.
This commit is contained in:
@@ -372,7 +372,6 @@ uint32_t X64CodeCache::PlaceData(const void* data, size_t length) {
|
||||
// Hold a lock while we bump the pointers up.
|
||||
size_t high_mark;
|
||||
uint8_t* data_address = nullptr;
|
||||
size_t unwind_table_slot = 0;
|
||||
{
|
||||
std::lock_guard<xe::mutex> allocation_lock(allocation_mutex_);
|
||||
|
||||
|
||||
@@ -81,14 +81,14 @@ class X64CodeCache : public CodeCache {
|
||||
// Current offset to empty space in generated code.
|
||||
size_t generated_code_offset_ = 0;
|
||||
// Current high water mark of COMMITTED code.
|
||||
std::atomic<size_t> generated_code_commit_mark_ = 0;
|
||||
std::atomic<size_t> generated_code_commit_mark_ = {0};
|
||||
|
||||
// Growable function table system handle.
|
||||
void* unwind_table_handle_ = nullptr;
|
||||
// Actual unwind table entries.
|
||||
std::vector<RUNTIME_FUNCTION> unwind_table_;
|
||||
// Current number of entries in the table.
|
||||
std::atomic<uint32_t> unwind_table_count_ = 0;
|
||||
std::atomic<uint32_t> unwind_table_count_ = {0};
|
||||
};
|
||||
|
||||
} // namespace x64
|
||||
|
||||
@@ -30,9 +30,9 @@ class X64Function : public Function {
|
||||
void Setup(uint8_t* machine_code, size_t machine_code_length);
|
||||
|
||||
protected:
|
||||
virtual bool AddBreakpointImpl(debug::Breakpoint* breakpoint);
|
||||
virtual bool RemoveBreakpointImpl(debug::Breakpoint* breakpoint);
|
||||
virtual bool CallImpl(ThreadState* thread_state, uint32_t return_address);
|
||||
bool AddBreakpointImpl(debug::Breakpoint* breakpoint) override;
|
||||
bool RemoveBreakpointImpl(debug::Breakpoint* breakpoint) override;
|
||||
bool CallImpl(ThreadState* thread_state, uint32_t return_address) override;
|
||||
|
||||
private:
|
||||
uint8_t* machine_code_;
|
||||
|
||||
Reference in New Issue
Block a user