Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pointers from CAGG lists for 64-bit archs #3824

Merged
merged 1 commit into from Nov 18, 2021

Conversation

mfundul
Copy link
Contributor

@mfundul mfundul commented Nov 18, 2021

Currently, the int64 elements are always passed by reference, which is
not necessary on 64-bit architectures where it can be passed by value.
Make it so they are only passed by reference for 32-bit architectures
and by value for 64-bit architectures, since the element fits in a
64-bit architecture pointer.

Fixes #3816

@codecov
Copy link

codecov bot commented Nov 18, 2021

Codecov Report

Merging #3824 (d5fef96) into master (1df000e) will increase coverage by 0.00%.
The diff coverage is 98.10%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #3824    +/-   ##
========================================
  Coverage   90.56%   90.57%            
========================================
  Files         213      213            
  Lines       37771    37881   +110     
========================================
+ Hits        34209    34312   +103     
- Misses       3562     3569     +7     
Impacted Files Coverage Δ
tsl/src/deparse.c 93.38% <96.29%> (+0.20%) ⬆️
tsl/src/remote/dist_ddl.c 97.46% <97.59%> (-0.18%) ⬇️
src/continuous_agg.c 96.63% <100.00%> (-0.02%) ⬇️
src/loader/loader.c 92.49% <100.00%> (+0.54%) ⬆️
tsl/src/continuous_aggs/invalidation.c 96.00% <100.00%> (ø)
tsl/src/remote/dist_commands.c 93.89% <100.00%> (+0.42%) ⬆️
src/loader/bgw_message_queue.c 85.52% <0.00%> (-2.64%) ⬇️
tsl/src/bgw_policy/job.c 87.50% <0.00%> (-0.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 103c1b2...d5fef96. Read the comment docs.

Currently, the int64 elements are always passed by reference, which is
not necessary on 64-bit architectures where it can be passed by value.
Make it so they are only passed by reference for 32-bit architectures
and by value for 64-bit architectures, since the element fits in a
64-bit architecture pointer.
@mfundul mfundul merged commit a4a2c4e into timescale:master Nov 18, 2021
@mfundul mfundul deleted the fix-64bit-list branch November 18, 2021 13:16
This was referenced Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass int64 by value on 64-bit architectures in the continuous aggregate code
3 participants